package com.schx.budget.handler;

import com.schx.budget.exception.LoginException;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Classname ExceptionHandler
 * @Description TODO
 * @Date 2021/2/5 10:50
 * @Created by cyh
 */
@RestControllerAdvice
public class ExceptionHandler {
    //认证
    @org.springframework.web.bind.annotation.ExceptionHandler(LoginException.class)
    public String loginExceptionHandler(LoginException e){
        return e.getMessage();
    }
}
